package top.bulk.idgeneration.genertation;

import org.springframework.stereotype.Component;

import java.util.UUID;

/**
 * 基于 uuid 生成id
 *
 * @author 散装java
 * @date 2024-08-12
 */
@Component("uuidIdGen")
public class UuidIdGen implements IDGen<String> {

    @Override
    public String nextId() {
        return UUID.randomUUID().toString();
    }
}
